package edu.gmu.projects.fireresponder;

import java.util.Collection;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;

import edu.gmu.projects.fireresponder.environment.Asset;
import edu.gmu.projects.fireresponder.environment.Location;

public class FirstResponder extends Asset {
	private Location location;

	public FirstResponder() {
		Random rand = new Random();
		this.setId(new Long(rand.nextLong()).toString());
	}

	public FirstResponder(String id) {
		super();
		this.setId(id);
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public Location getLocation() {
		return location;
	}

	@Override
	public int getEstimatedTimeToComplete() {
		return 0;
	}

	@Override
	public Set<Location> getPoints() {
		HashSet<Location> set = new HashSet<Location>();
		set.add(location);
		return set;
	}

	@Override
	public int compareTo(Asset arg) {
		return 0;
	}

	@Override
	public Location getCenter() {
		return location;
	}

	public Collection<Asset> getConnectedAssets() {
		return new HashSet<Asset>();
	}
}
